package com.woniu.service;

import com.github.pagehelper.PageInfo;
import com.woniu.entity.Account;

import java.util.List;


public interface AccountService {

    List<Account> findAllAccounts();

    PageInfo<Account> findAccountByPage(int pageNum, int pageSize);

    Account findAccountByLogin(String userName);

    Account findAccountById(int id);

    boolean isAccountNameExists(String accountName);

    boolean registerAccount(Account account);

    boolean updateAccountByAccountId(Account account);

    boolean updatePasswordByAccountId(Account account);
}
